<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PHP演示Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
 
		<fieldset>
				<form name="MyForm" method="post" action="p1Sign.php">
						<p>生成p1签名:</p><br/>
						<p>
								签名算法: <input type="text" value="SHA1withRSAEncryption" name="signAlg" />
						</p>
						<p>
								base64格式原文:
								<textarea name="base64SourceData" rows="20" cols="100">
               					  Y2ZjYTEyMzQ=
              	</textarea>
						</p>
						<p>
								base64格式P12:
								<textarea name="base64P12Data" rows="20" cols="100">
               					 MIIINgIBAzCCB/IGCSqGSIb3DQEHAaCCB+MEggffMIIH2zCCA8QGCSqGSIb3DQEHAaCCA7UEggOxMIIDrTCCA6kGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAgMbehZJGo8HQICB9AEggKQbF131aZU/jNUJV7p8kaMxxZJcJxuUWMpf0bH2uvIz55u+JRF/PaC74NgKM6CHWjO47kdCt4yVSfg2adIsz9zjZD3o7FvHXeridua6yiE3qJxhF1WxBXsZK3+V/GiHLrwEt9ohjcRqkJzqzJP4Ld40IMMh85qNB0L0VKzQ8U7nlWtzwVP55XdcqEyjvZ36lIJO7KSqeZ/NGtT9Po3x/gWc+oIHNXiuqfwwoQh3l/Ow8dWy6Pa9Y8bqgUb4VkY/IkwBZFsKxzGB1mZBV/2cwHIrBn9YeVXSnYRmvjqoJts0pUn1IB7yzwb+lQYAr3RMZOhQyEA3vU+UaYYI3MazM9A88k6eJMWk4KrteQcbJmsiaoGiU4SIdDdTwigipZcPSizyD5ngs5vDBG3+5J0AghMR71EOCLqQtDXg/qKXd8qKFQ09g2L2RRJB4aIWT1GTvlK9nJveaBQBRvqEqZSmv8wyVwMqL+k/nw0KJtH2pv3NIx4HDJEjFcCgq+0Bg58Em6S1Y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n9s+3n7wV8ihZkhuXd6cpVQGSGc9yJT9vsephf7Xbh+JkFk2tiUK0KosCMhld0T+ncasxs6j4BhAVfCzvKI9IR8O9h5RASnKf65tqX3PDMbcMaLHedtLosLbtyxTJ9wg8LA2J+zKaxha6nExyja6OSgVyBe6o9wNFTHImVPzAovVMxst27jUHFZ8wvVn+6B3+tPTd+La66x6EufHEiaG8N+14P9ecE9gwCMIC5aID8x6N7/kIXcwRlz3oBSV3KUQ5/XshUwvySST+U8bvXTSplyPqLiGn2UanzQ765Ac6seBPfCRNBl8cUaSCpYWMJfsgB8v3PfIaCk0TfG/hpEZb98xjGaBMMUAJptCX6QocdMBZM3lyj4q72BVcz6CzvmuxUK1t94ydqDe1SQ1SQtcTv7+GtIapQYE9IXJxubmmyEMlrzqeAVC9zzvtxpk83E7PXXh4TInglMkBAnj+uUKWJd+LlvTnMy02DL7074QbqPHCTtQ58/A6ZvoxhSqPTd0G7JHbqPBqWollCJXIp/EVbeHAktRNh3/UdsIuIh9a2czE8HezqxxBB0IGgeKJNYYbk1df2rMVfaYNKtZGku60t3Y3QsNvdWrXzLw4b+fnmQZ6gU2WCyWv4MYvFW5iK2ehSydQD89bdhfdRtETTag+IOwgDlF6xuFEyw0/FDYIGZH8l+HehJqzqIeSxp8sDlwzad2dBVuHp45UMwNq5rX352crv5R7419qfeT22wAPuWW47gbNTjYrMlNm10WFBVKPNQGOR9f1YC9NFtLZCHHfSA6eTWVo3MC7CxujXlws8R2xkWrUsCne7XRgrOEovtfZEf57gawAUN9UF3fseHwcUtkUvelibszN03FCB8FVhjrFvHDrbSONcUnGjJZcG9lO7K7+xEHdyAGa7jmISYjUHqPJHqMwcaB5sl5nVHlI2F2yKyNyKhZih6sbcjePgCrDfH5AfnTuDFctgIwOzAfMAcGBSsOAwIaBBQMzyxP4wWKX+GAmvEMDJiE8PnnUgQUBJTXK65YzvG3hbWh+WKvuJ25c00CAgfQ
              	</textarea>
						</p>
						<p>
								P12密码: <input type="text" value="123123" name="p12Password" />
						</p>
						<p>
								<input type="submit" />
						</p>
				</form>
		</fieldset>

		<br />

		<fieldset>
				<form name="MyForm" method="post" action="p1Verify.php">
						<p>校验p1签名:</p><br/>
						<p>
								签名算法: <input type="text" value="SHA1withRSAEncryption" name="signAlg" />
						</p>
						<p>
								base64格式原文:
								<textarea name="base64SourceData" rows="20" cols="100">
               					  Y2ZjYTEyMzQ=
              	</textarea>
						</p>
						<p>
								base64格式证书内容:
								<textarea name="base64X509CertData" rows="20" cols="100">
               					 MIIDdzCCAl+gAwIBAgIFEAUxV5AwDQYJKoZIhvcNAQEFBQAwIzELMAkGA1UEBhMCQ04xFDASBgNVBAoMC0NBMjAyOC0yMDMxMB4XDTE1MDMyOTAzMzE0MloXDTE2MDMyODAzMzE0MlowNTELMAkGA1UEBhMCQ04xFDASBgNVBAoMC0NBMjAyOC0yMDMxMRAwDgYDVQQDDAd0ZXN0MzI5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFm+6NCVS/g+D7y6XrAizq+G2rQl84nkiy/SKrnDZzhnuphiUuijW/6mbVuKaDUkFxbaba3z97rl66Q2fTYTEbC2ImUClWtnEiCM4IW/rXDVkp6sKD0utBP4mXvECqVi5XnyVrTLNWpqlGloUyyj0MtKcblgIYGvRUbHNWj+JXLQIDAQABo4IBIjCCAR4wHwYDVR0jBBgwFoAUQh91vsC1py4NpqRVNNbJMtnVCkYwgc4GA1UdHwSBxjCBwzCBjqCBi6CBiIaBhWxkYXA6Ly8xOTIuMTY4LjkzLjExNDozODkvY249Y3JsMzUyOSxvdT1SU0EsT1U9Q1JMLE89Q0EyMDI4LTIwMzEsQz1DTj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Y2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnQwMKAuoCyGKmh0dHA6Ly8xOTIuMTY4LjEyMC4xMjcvY3JsL1JTQS9jcmwzNTI5LmNybDALBgNVHQ8EBAMCA/gwHQYDVR0OBBYEFFwnP005w7UYf172RmulL14U05htMA0GCSqGSIb3DQEBBQUAA4IBAQB38XeCXUwoWvUcI68tkxNIWTmw9qATzgQobnnwxaXFPunHT9aiEIdvHPZkL1jzsoBmFEK3sWOKRtqAd7qq3GHqxIP2zfg01O5+DPDWTY+L2Tfsg5bekfKNjd5I9D+ZrxUDkAyxPVugyluZYA0UHDM1bCKFW/5TyxFQqGUM7X3GsTqN7fBNf15cH8myl/3Inr/pc0zXryvf19fEv1+1KYYkU5xOVobqJj1LBe+d7ax8gmvU4lkRWFuy3wnKzetXbiNB8QQ6dApiOyWHRNDVLPL2n4Aom++bFCh7ceZVAb0hqWiGIVBp8y7AYrq7D23V72PSl7tjl72FBLRwUt+8SoTq
              	</textarea>
						</p>
						<p>
								base64格式P1签名内容:
								<textarea name="base64P1SignatureData" rows="20" cols="100">
               					 iGsR5nBjIf/1qhDEycbQIOThMQs9YzRtwSrZhezY3Bp+wRBWZGecn32jaiRsFJfxKRkKfepRiK06X/IseiyyyCklFAJ1t9mBcERQZVkzRcxVjB7NjwlSjDWgCxipQUjD0VtZAwUS3eA7sO4bPvWc1XiRWSaPKdRJHUcNLA6gYhk=
              	</textarea>
						</p>
						<p>
								<input type="submit" />
						</p>
				</form>
		</fieldset>
		
		<br />
		
	<fieldset>
				<form name="MyForm" method="post" action="makeEnvelope.php">
						<p>生成数字信封:</p><br/>
						<p>
								算法: <input type="text" value="DESede/CBC/PKCS7Padding" name="signAlg" />
						</p>
						 
						<p>
								base64格式原文:
								<textarea name="base64SourceData" rows="20" cols="100">
               					 Y2ZjYTEyMzQ=
              	</textarea>
						</p>
						<p>
								base64格式证书内容:
								<textarea name="base64CertData" rows="20" cols="100">
               				MIIDdzCCAl+gAwIBAgIFEAUxV5AwDQYJKoZIhvcNAQEFBQAwIzELMAkGA1UEBhMCQ04xFDASBgNVBAoMC0NBMjAyOC0yMDMxMB4XDTE1MDMyOTAzMzE0MloXDTE2MDMyODAzMzE0MlowNTELMAkGA1U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" />
						</p>
				</form>
		</fieldset>

		<br />

		<fieldset>
				<form name="MyForm" method="post" action="openEnvelope.php">
						<p>解封数字信封:</p><br/>
						<p>
								base64数字信封内容:
								<textarea name="base64EnvelopeData" rows="20" cols="100">
               					  MIH6BgkqhkiG9w0BBwOggewwgekCAQIxga4wgasCAQKAFFwnP005w7UYf172RmulL14U05htMA0GCSqGSIb3DQEBAQUABIGAXB9yHeRnDXGq/yP20R3DZXQH+baXdQC0eSAYDmgrzU35wWR8hj5K2rG1Ccc9gS7tGBUn0J3Gm01B+2AH3HKuJRmrsHgD8oPApZyNCT5RJEt/63DU6Q87LFezu5stqyTVCtxTOhHxLk4tAIvdMymBnoaAssqbB4WfGgqzEhevnqIwMwYJKoZIhvcNAQcBMBQGCCqGSIb3DQMHBAjPdElBH4pYY4AQfBt+5EuSPPsGGIz8gG08OA==
              	 </textarea>
						</p>
						<p>
								算法: <input type="text" value="DESede/CBC/PKCS7Padding" name="signAlg" />
						</p>
						<p>
								base64格式P12:
								<textarea name="base64P12Data" rows="20" cols="100">
               					 MIIINgIBAzCCB/IGCSqGSIb3DQEHAaCCB+MEggffMIIH2zCCA8QGCSqGSIb3DQEHAaCCA7UEggOxMIIDrTCCA6kGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAgMbehZJGo8HQICB9AEggKQbF131aZU/jNUJV7p8kaMxxZJcJxuUWMpf0bH2uvIz55u+JRF/PaC74NgKM6CHWjO47kdCt4yVSfg2adIsz9zjZD3o7FvHXeridua6yiE3qJxhF1WxBXsZK3+V/GiHLrwEt9ohjcRqkJzqzJP4Ld40IMMh85qNB0L0VKzQ8U7nlWtzwVP55XdcqEyjvZ36lIJO7KSqeZ/NGtT9Po3x/gWc+oIHNXiuqfwwoQh3l/Ow8dWy6Pa9Y8bqgUb4VkY/IkwBZFsKxzGB1mZBV/2cwHIrBn9YeVXSnYRmvjqoJts0pUn1IB7yzwb+lQYAr3RMZOhQyEA3vU+UaYYI3MazM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wcaB5sl5nVHlI2F2yKyNyKhZih6sbcjePgCrDfH5AfnTuDFctgIwOzAfMAcGBSsOAwIaBBQMzyxP4wWKX+GAmvEMDJiE8PnnUgQUBJTXK65YzvG3hbWh+WKvuJ25c00CAgfQ
              	</textarea>
						</p>
						<p>
								P12密码: <input type="text" value="123123" name="p12Password" />
						</p>
						<p>
								<input type="submit" />
						</p>
				</form>
		</fieldset>
		
</body>
</html>
